package com.vcar.LDiceClient.command
{


    import com.vcar.LDiceClient.dataproxy.DateProxy;
    import com.vcar.LDiceClient.dataproxy.SocketProxy;
    import com.vcar.LDiceClient.dataproxy.chat.chatProxy;
    import com.vcar.LDiceClient.dataproxy.user.UserProxy;
    
    import org.puremvc.as3.interfaces.INotification;
    import org.puremvc.as3.patterns.command.SimpleCommand;

    /**
     * 初始化proxy,
     * @author rhj
     *
     */
    public class ModelPreCommand extends SimpleCommand
    {

        public function ModelPreCommand()
        {
            super();
        }

        /**
         *注册proxy
         * @param notification
         *
         */
        override public function execute(notification:INotification):void
        {
			facade.registerProxy(new UserProxy());
			facade.registerProxy(new SocketProxy());
			facade.registerProxy(new chatProxy());
			facade.registerProxy(new DateProxy());
        }

    }
}

